﻿@using Kairos.Models
@using Kairos.Views

@model Kairos.Models.Mappage

@{
    ViewBag.Title = "Nouveau mappage";
}

<h2>@ViewBag.Titre - @ViewBag.Title</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Mappage</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Titre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Titre)
            @Html.ValidationMessageFor(model => model.Titre)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Position)
            (x1,y1,x2,y2)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Position)
            @Html.ValidationMessageFor(model => model.Position)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Lien)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Lien)
            @Html.ValidationMessageFor(model => model.Lien)
        </div>

    </fieldset>

    <hr />

    <table class="props">
        <tr>
            <td>
                <div>
                    @Html.ButtonLink("Annuler", "Index", new { id = 0, grapheID = ViewBag.ID }, new { @class = "ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" })
                </div>
            </td>
            <td align="right">
                <div>
                    <input type="submit" value="Sauvegarder" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />
                </div>
            </td>
        </tr>
    </table>

}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
